package com.cljz.makepassenger.ui.holder;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;

import com.cljz.makepassenger.R;

import cn.droidlover.xdroidmvp.imageloader.ILFactory;
import cn.droidlover.xdroidmvp.imageloader.ILoader;

/**
 * Created by apple on 2017/4/10.
 */

public class InvitationShareHolder extends RecyclerView.ViewHolder {

    private ImageView ivShareIcon;

    public InvitationShareHolder(View itemView) {
        super(itemView);
        ivShareIcon = (ImageView) itemView.findViewById(R.id.iv_share_icon);
    }

    public void setData(int[] shareIcon, int position) {
        ILFactory.getLoader().loadResource(ivShareIcon, shareIcon[position], ILoader.Options.defaultOptions());
    }
}
